file(GLOB_RECURSE srcfiles  *.cpp *.c)

include_directories(${APR_ROOT_DIR}/include)
include_directories(${APR_ROOT_DIR}/include/apr-1)
include_directories(${APRUTIL_ROOT_DIR}/include)

link_directories(${APR_ROOT_DIR}/lib)
link_directories(${APRUTIL_ROOT_DIR}/lib)

link_libraries(apr-1)
link_libraries(aprutil-1)
link_libraries(crypt)

add_executable(htpasswd ${srcfiles})

install(TARGETS htpasswd DESTINATION bin)